fn = raw_input("Input filename: ");
try:
	f = open(fn,'r');
except IOError, e:
	print fn+" open error: ", e;
else:
	for line in f:
		print line.strip();
	f.close();

